package com.rinlink.gateway.jt808.configuration;

import org.springframework.boot.autoconfigure.web.ServerProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration
public class WebClientTestConfiguration {

    @Bean
    public WebClient webClientTest(ServerProperties properties){
        return WebClient.create(String.format("http://127.0.0.1:%d",properties.getPort()));
    }

}
